/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ReceiptScreen.java
 *
 * Created on 05 14, 11, 10:42:42 PM
 */
package vera;

/**
 *
 * @author kasia
 */
public class ReceiptScreen extends ParentClass {

    /** Creates new form ReceiptScreen */
    public ReceiptScreen() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        m_labelCreateReceipt = new javax.swing.JLabel();
        m_labelReceiptNo = new javax.swing.JLabel();
        m_labelBillNos = new javax.swing.JLabel();
        m_labelClient = new javax.swing.JLabel();
        m_labelTin = new javax.swing.JLabel();
        m_labelMessenger = new javax.swing.JLabel();
        m_labelAmount = new javax.swing.JLabel();
        m_labelPaymentType = new javax.swing.JLabel();
        m_labelCheckNo = new javax.swing.JLabel();
        m_labelIssuingBank = new javax.swing.JLabel();
        m_labelEffectiveDate = new javax.swing.JLabel();
        m_textFieldClient = new javax.swing.JTextField();
        m_textFieldTin = new javax.swing.JTextField();
        m_textFieldMessenger = new javax.swing.JTextField();
        m_textFieldAmount = new javax.swing.JTextField();
        m_radioButtonCash = new javax.swing.JRadioButton();
        m_radioButtonCheck = new javax.swing.JRadioButton();
        m_textFieldCheckNo = new javax.swing.JTextField();
        m_textFieldIssuingBank = new javax.swing.JTextField();
        m_textFieldEffectiveDate = new javax.swing.JTextField();
        m_textFieldReceiptNo = new javax.swing.JTextField();
        m_labelDateCreated = new javax.swing.JLabel();
        m_buttonCreate = new javax.swing.JButton();
        m_buttonAdd = new javax.swing.JButton();
        m_buttonDelete = new javax.swing.JButton();
        m_buttonCancel = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        m_tableBillNos = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(vera.VERAApp.class).getContext().getResourceMap(ReceiptScreen.class);
        m_labelCreateReceipt.setFont(resourceMap.getFont("m_labelCreateReceipt.font")); // NOI18N
        m_labelCreateReceipt.setText(resourceMap.getString("m_labelCreateReceipt.text")); // NOI18N
        m_labelCreateReceipt.setName("m_labelCreateReceipt"); // NOI18N

        m_labelReceiptNo.setText(resourceMap.getString("m_labelReceiptNo.text")); // NOI18N
        m_labelReceiptNo.setName("m_labelReceiptNo"); // NOI18N

        m_labelBillNos.setText(resourceMap.getString("m_labelBillNos.text")); // NOI18N
        m_labelBillNos.setName("m_labelBillNos"); // NOI18N

        m_labelClient.setText(resourceMap.getString("m_labelClient.text")); // NOI18N
        m_labelClient.setName("m_labelClient"); // NOI18N

        m_labelTin.setText(resourceMap.getString("m_labelTin.text")); // NOI18N
        m_labelTin.setName("m_labelTin"); // NOI18N

        m_labelMessenger.setText(resourceMap.getString("m_labelMessenger.text")); // NOI18N
        m_labelMessenger.setName("m_labelMessenger"); // NOI18N

        m_labelAmount.setText(resourceMap.getString("m_labelAmount.text")); // NOI18N
        m_labelAmount.setName("m_labelAmount"); // NOI18N

        m_labelPaymentType.setText(resourceMap.getString("m_labelPaymentType.text")); // NOI18N
        m_labelPaymentType.setName("m_labelPaymentType"); // NOI18N

        m_labelCheckNo.setText(resourceMap.getString("m_labelCheckNo.text")); // NOI18N
        m_labelCheckNo.setName("m_labelCheckNo"); // NOI18N

        m_labelIssuingBank.setText(resourceMap.getString("m_labelIssuingBank.text")); // NOI18N
        m_labelIssuingBank.setName("m_labelIssuingBank"); // NOI18N

        m_labelEffectiveDate.setText(resourceMap.getString("m_labelEffectiveDate.text")); // NOI18N
        m_labelEffectiveDate.setName("m_labelEffectiveDate"); // NOI18N

        m_textFieldClient.setText(resourceMap.getString("m_textFieldClient.text")); // NOI18N
        m_textFieldClient.setName("m_textFieldClient"); // NOI18N

        m_textFieldTin.setText(resourceMap.getString("m_textFieldTin.text")); // NOI18N
        m_textFieldTin.setName("m_textFieldTin"); // NOI18N

        m_textFieldMessenger.setText(resourceMap.getString("m_textFieldMessenger.text")); // NOI18N
        m_textFieldMessenger.setName("m_textFieldMessenger"); // NOI18N

        m_textFieldAmount.setText(resourceMap.getString("m_textFieldAmount.text")); // NOI18N
        m_textFieldAmount.setName("m_textFieldAmount"); // NOI18N

        m_radioButtonCash.setText(resourceMap.getString("m_radioButtonCash.text")); // NOI18N
        m_radioButtonCash.setName("m_radioButtonCash"); // NOI18N

        m_radioButtonCheck.setText(resourceMap.getString("m_radioButtonCheck.text")); // NOI18N
        m_radioButtonCheck.setName("m_radioButtonCheck"); // NOI18N

        m_textFieldCheckNo.setText(resourceMap.getString("m_textFieldCheckNo.text")); // NOI18N
        m_textFieldCheckNo.setName("m_textFieldCheckNo"); // NOI18N

        m_textFieldIssuingBank.setText(resourceMap.getString("m_textFieldIssuingBank.text")); // NOI18N
        m_textFieldIssuingBank.setName("m_textFieldIssuingBank"); // NOI18N

        m_textFieldEffectiveDate.setText(resourceMap.getString("m_textFieldEffectiveDate.text")); // NOI18N
        m_textFieldEffectiveDate.setName("m_textFieldEffectiveDate"); // NOI18N

        m_textFieldReceiptNo.setText(resourceMap.getString("m_textFieldReceiptNo.text")); // NOI18N
        m_textFieldReceiptNo.setName("m_textFieldReceiptNo"); // NOI18N

        m_labelDateCreated.setText(resourceMap.getString("m_labelDateCreated.text")); // NOI18N
        m_labelDateCreated.setName("m_labelDateCreated"); // NOI18N

        m_buttonCreate.setText(resourceMap.getString("m_buttonCreate.text")); // NOI18N
        m_buttonCreate.setName("m_buttonCreate"); // NOI18N

        m_buttonAdd.setText(resourceMap.getString("m_buttonAdd.text")); // NOI18N
        m_buttonAdd.setName("m_buttonAdd"); // NOI18N

        m_buttonDelete.setText(resourceMap.getString("m_buttonDelete.text")); // NOI18N
        m_buttonDelete.setName("m_buttonDelete"); // NOI18N

        m_buttonCancel.setText(resourceMap.getString("m_buttonCancel.text")); // NOI18N
        m_buttonCancel.setName("m_buttonCancel"); // NOI18N

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        m_tableBillNos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "Bill No", "Amount"
            }
        ));
        m_tableBillNos.setName("m_tableBillNos"); // NOI18N
        jScrollPane2.setViewportView(m_tableBillNos);
        m_tableBillNos.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("m_tableBillNos.columnModel.title0")); // NOI18N
        m_tableBillNos.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("m_tableBillNos.columnModel.title1")); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(m_labelPaymentType)
                                .addGap(18, 18, 18)
                                .addComponent(m_radioButtonCash)
                                .addGap(61, 61, 61)
                                .addComponent(m_radioButtonCheck))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(m_labelAmount)
                                    .addComponent(m_labelMessenger)
                                    .addComponent(m_labelTin))
                                .addGap(35, 35, 35)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(m_labelIssuingBank)
                                        .addGap(18, 18, 18)
                                        .addComponent(m_textFieldIssuingBank))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(m_labelCheckNo)
                                        .addGap(33, 33, 33)
                                        .addComponent(m_textFieldCheckNo))
                                    .addComponent(m_textFieldAmount)
                                    .addComponent(m_textFieldMessenger)
                                    .addComponent(m_textFieldTin, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(m_textFieldClient, javax.swing.GroupLayout.PREFERRED_SIZE, 379, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(m_labelClient)
                            .addComponent(m_labelCreateReceipt)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(m_labelReceiptNo)
                                    .addComponent(m_labelBillNos))
                                .addGap(50, 50, 50)
                                .addComponent(m_textFieldReceiptNo, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(341, 341, 341)
                                .addComponent(m_labelEffectiveDate)
                                .addGap(18, 18, 18)
                                .addComponent(m_textFieldEffectiveDate, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(85, 85, 85)
                                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(m_buttonAdd, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(m_buttonDelete))))
                        .addContainerGap(163, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(m_labelDateCreated)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 577, Short.MAX_VALUE)
                        .addComponent(m_buttonCreate)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(m_buttonCancel)
                        .addGap(196, 196, 196))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(34, 34, 34)
                        .addComponent(m_labelCreateReceipt)
                        .addGap(31, 31, 31)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(m_labelReceiptNo)
                            .addComponent(m_labelEffectiveDate)
                            .addComponent(m_textFieldEffectiveDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(m_textFieldReceiptNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(m_labelBillNos))
                        .addGap(18, 18, 18))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addContainerGap(152, Short.MAX_VALUE)
                        .addComponent(m_buttonAdd)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(m_buttonDelete)
                        .addGap(64, 64, 64)))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelClient)
                    .addComponent(m_textFieldClient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_textFieldTin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(m_labelTin))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_textFieldMessenger, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(m_labelMessenger))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelAmount)
                    .addComponent(m_textFieldAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelPaymentType)
                    .addComponent(m_radioButtonCheck)
                    .addComponent(m_radioButtonCash))
                .addGap(13, 13, 13)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelCheckNo)
                    .addComponent(m_textFieldCheckNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelIssuingBank)
                    .addComponent(m_textFieldIssuingBank, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(132, 132, 132)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelDateCreated)
                    .addComponent(m_buttonCancel)
                    .addComponent(m_buttonCreate))
                .addGap(54, 54, 54))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new ReceiptScreen().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JButton m_buttonAdd;
    private javax.swing.JButton m_buttonCancel;
    private javax.swing.JButton m_buttonCreate;
    private javax.swing.JButton m_buttonDelete;
    private javax.swing.JLabel m_labelAmount;
    private javax.swing.JLabel m_labelBillNos;
    private javax.swing.JLabel m_labelCheckNo;
    private javax.swing.JLabel m_labelClient;
    private javax.swing.JLabel m_labelCreateReceipt;
    private javax.swing.JLabel m_labelDateCreated;
    private javax.swing.JLabel m_labelEffectiveDate;
    private javax.swing.JLabel m_labelIssuingBank;
    private javax.swing.JLabel m_labelMessenger;
    private javax.swing.JLabel m_labelPaymentType;
    private javax.swing.JLabel m_labelReceiptNo;
    private javax.swing.JLabel m_labelTin;
    private javax.swing.JRadioButton m_radioButtonCash;
    private javax.swing.JRadioButton m_radioButtonCheck;
    private javax.swing.JTable m_tableBillNos;
    private javax.swing.JTextField m_textFieldAmount;
    private javax.swing.JTextField m_textFieldCheckNo;
    private javax.swing.JTextField m_textFieldClient;
    private javax.swing.JTextField m_textFieldEffectiveDate;
    private javax.swing.JTextField m_textFieldIssuingBank;
    private javax.swing.JTextField m_textFieldMessenger;
    private javax.swing.JTextField m_textFieldReceiptNo;
    private javax.swing.JTextField m_textFieldTin;
    // End of variables declaration//GEN-END:variables
}
